package com.yonyou.pmclouds.issuelog.service.rmiimpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.basecom.bp.template.SingleInsertBpTemplate;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.issuelog.entity.IssueLogVO;
import com.yonyou.pmclouds.issuelog.mapper.IssueLogMapper;
import com.yonyou.pmclouds.issuelog.service.IIssueLogMaintain;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author th
 * @date 2019/9/29 9:25
 */
@Service(version = ApplicationConsts.APPLICATION_VERSION, interfaceClass = IIssueLogMaintain.class)
public class IssueLogMaintainImpl implements IIssueLogMaintain {

    @Autowired
    private IssueLogMapper mapper;

    @Override
    public IssueLogVO insert(IssueLogVO logVO) throws BusinessException {
        SingleInsertBpTemplate<IssueLogVO> insertBp = new SingleInsertBpTemplate<>(mapper);

        return insertBp.insert(logVO);
    }
}
